(provide 'init-smart-make)

(defun smart-make-hook()
  (interactive)
  ;; (let ((file-name (buffer-file-name))
        ;; (file-path (file-name-nondirectory file-name))
        ;; (message file-name))))
  (let (file-name file-no-path my-compile-command))
  (setq file-name (buffer-file-name))
  (setq file-no-path (file-name-nondirectory file-name))
  (setq my-compile-command (concat "ssh2.py " file-no-path))
  (compile my-compile-command)
   )

(setq compile-command "make")
